FROM openjdk:8-jdk

ENV APP_ARGS="" \
    JAVA_OPTS=""
WORKDIR /root
ADD entrypoint.sh entrypoint.sh
RUN chmod 755 entrypoint.sh
USER root
VOLUME /root/logs
ADD *.jar app.jar
ENTRYPOINT ["./entrypoint.sh"]